//
//  BaseCommand.h
//  Pods
//
//  Created by Henry on 2023/2/20.
//

#ifndef BaseCommand_h
#define BaseCommand_h

typedef  void(^Error_handler)(NSError * error,id data);

@interface BaseCommand : NSObject

@property(nonatomic,copy) NSString * thingName;

@property(nonatomic,copy) NSString * thingTypeName;

-(id)initWithDevId:(NSString *)thingName withThingTypeName:(NSString *)thingTypeName;

-(void)startSend:(void(^)(NSError *,id))handler;

-(id)getTopic;

-(id)getCommandContent;

-(id)getSubcribeTopic;
@end

#endif /* BaseCommand_h */
